#include "contenthandlerinterface.h"

#define MAX_DEFCON_HANDLER_BUFFER_SIZE 131072

typedef struct Contentt{
	char* data;
	long datalength;
	long currentdatasize;
}Content;

class defaultcontenthandler: public ContentHandlerInterface{
public:
	defaultcontenthandler();
	~defaultcontenthandler();
	HANDLER_RESPONSE HandleData(char** , unsigned int *);	
	int GetHandledData(char** , unsigned int *);	
	void HandleHeaders(HeaderHandlerInterface* headerd);

private:
	Content content;
	char* buffer;
	unsigned int buffersize;
	unsigned int content_length;
	HeaderHandlerInterface* headerh;
	short data_completed;
};
